export class Repo {
    array: any;
    constructor(responseRepos: any) {
        this.array = responseRepos.map((item: any) => {
            return (
                {
                    id: item.id,
                    full_name: item.full_name,
                    human_name: item.human_name,
                    description: item.description,
                    owner_name: item.owner.name,
                    language:item.language
                }
            )
        })
    }
}

// export class Repo {
//     id: number;
//     fullName: string;
//     humanName: string;
//     description: string;
//     language: string;
//     ownerName: string;
//     constructor(repo: any) {
//         this.id = repo.id;
//         this.fullName = repo.full_name;
//         this.humanName = repo.human_name;
//         this.description = repo.description;
//         this.ownerName = repo.owner.name;
//         this.language = repo.language;
//     }
// }